Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PC-34274)[API] feat: add age 17 to 18 eligibility #16072

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dnguyen1-pass
Copy link
Contributor

But de la pull request

Ticket Jira (ou description si BSR) : https://passculture.atlassian.net/browse/PC-34274

Copy link
Contributor

github-actions bot commented Jan 28, 2025

Visit the preview URL for this PR (updated for commit 04f9379):

https://pc-pro-testing--pr16072-pc-34181-credit-v3-e-6z6833bv.web.app

(expires Sun, 02 Feb 2025 08:56:49 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 032d233ee67e1c50d6af12e29c936c7076770eb1

Comment on lines 100 to 104
Extended eligibility means that this function considers a 19 year old eligible as long as the specified datetime
is contained between the eligibility datetime start and end.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Extended eligibility means that this function considers a 19 year old eligible as long as the specified datetime
is contained between the eligibility datetime start and end.
Extended eligibility means that this function considers a non-eligible user eligible,
as long as they were eligible at the specified datetime
This is summed up as this pseudocode: eligibility_start < specified_datetime < eligibility_end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tentative de clarification du commentaire :)

api/src/pcapi/core/users/eligibility_api.py Show resolved Hide resolved
api/tests/core/subscription/test_api.py Outdated Show resolved Hide resolved
api/tests/core/subscription/test_api.py Outdated Show resolved Hide resolved
api/tests/core/users/test_eligibility.py Show resolved Hide resolved
@dnguyen1-pass dnguyen1-pass force-pushed the PC-34181-credit-v3-eligibility branch 4 times, most recently from 6fbaf8a to e3ccbee Compare January 29, 2025 14:53
@dnguyen1-pass dnguyen1-pass force-pushed the PC-34181-credit-v3-eligibility branch 3 times, most recently from cb177e3 to 445e3b7 Compare January 30, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants